﻿<%@ Page Language="C#" MasterPageFile="~/webadmin/pages/MasterPage.master" AutoEventWireup="true" CodeFile="PhanQuyen_NhomNguoiDung_list.aspx.cs" Inherits="webadmin_pages_Default2" %>

<%@ Register Assembly="ASPnetPagerV2_8" Namespace="ASPnetControls" TagPrefix="cc1" %>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_Main" Runat="Server">
			<div class="tbl">
			<div class="clear"></div> <!-- End .clear -->
<div class="content-box ">
                
				<div class="content-box-header">
            <h3>
                Danh sách : <span style="color: #00CC00">Nhóm người dùng (Tổng số:<%=pagination1.ItemCount.ToString() %>)</span>
            </h3>
            
            <div class="clear">
                &nbsp;</div>
        </div>
        <!-- End .content-box-header -->
				
				<div class="content-box-content "  >
					
					<div class="tab-content default-tab" id="tab1"> <!-- This is the target div. id must match the href of this div's tab -->
				
				<!-- Start Notifications -->
			<% if (!string.IsNullOrEmpty(messageError))
                    {%>
			<div class="notification error png_bg">
				<a href="#" class="close"><img src="../resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
				<div>
				Thông báo lỗi  <b><i><%=messageError%></i></b></div>
			</div>
			<%} %>
			
		
			
			<!-- End Notifications -->
				
				<ul class="shortcut-buttons-set">
                    
				    <li><asp:Button ID="btnAdd" runat="server" Text="Thêm mới" OnClick="btnAdd_Click" TabIndex="3" UseSubmitBehavior="False" />
				        <asp:DropDownList ID="cboKichHoat" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                            <asp:ListItem Value="1">Kích hoạt</asp:ListItem>
                            <asp:ListItem Value="0">Chưa kích hoạt</asp:ListItem>
                        </asp:DropDownList>
                    </li>
                    <li>Mã nhóm:<asp:TextBox ID="txtMa" runat="server"></asp:TextBox></li>
				    <li>Tên nhóm:<asp:TextBox ID="txtTen" runat="server"></asp:TextBox></li>
                    <asp:Button ID="btnSearch" runat="server" OnCommand="btnSearch_Command" Text="Tìm kiếm" />
                    <asp:Button ID="txtReset" runat="server" OnCommand="txtReset_Command" Text="Tất cả" /></ul>
		  
		  <div class="clear"></div>
              <!-- End .shortcut-buttons-set -->
              <table class="tbl_list" width="100%">
	            <tr class="tbl_list_head">
	                <th style="width:19px;">Mã</th>
                    <th style="width:134px;">Tên nhóm</th>
                    <th style="width:234px;">Mô tả</th>
                    <th style="width:80px;">Kích hoạt</th>
                    <th style="width:150px;text-align:center; ">Hành động</th>
                </tr>
                <asp:Repeater ID="rpt_user_list" runat="server" OnItemDataBound="rpt_user_list_ItemDataBound">
                <ItemTemplate>
	                    <tr class="tbl_list_odl">
	                        <td><%# DataBinder.Eval(Container.DataItem, "ma_nhom_nd")%></td>
	                        <td><%# DataBinder.Eval(Container.DataItem, "ten_nhom_nd")%></td>
		                    <td><%# DataBinder.Eval(Container.DataItem, "mo_ta")%></td>		                    
		                    <td><%# DataBinder.Eval(Container.DataItem, "kich_hoat")%></td>
		                    <td align="right">
		                        <a href="PhanQuyen_NhomNguoiDung_detail.aspx?id=<%# DataBinder.Eval(Container.DataItem, "ma_nhom_nd") %>">[Chi tiết]</a>
            	                
	                            <a href="PhanQuyen_NhomNguoiDung_frm.aspx?act=edit&id=<%# DataBinder.Eval(Container.DataItem, "ma_nhom_nd") %>">[Sửa]</a>
                  
                                 <a href="javascript:void(0);" onclick="if(confirm('B?n có mu?n xóa thông tin có m? là: <%# DataBinder.Eval(Container.DataItem, "ma_nhom_nd") %> ?')) window.location ='PhanQuyen_NhomNguoiDung_list.aspx?act=del&id=<%# DataBinder.Eval(Container.DataItem, "ma_nhom_nd") %>'  ">[xóa]</a> 
                
	                        </td>
	                    </tr>        
	                </ItemTemplate>
                </asp:Repeater>
</table>
                        <br />



	
				  </div> <!-- End #tab1 -->
				  <div class="pagination">
                      <cc1:PagerV2_8 ID="pagination1" runat="server" GenerateFirstLastSection="True" GenerateGoToSection="True"
                          OnCommand="pagination1_Command" PageSize="5" BackToFirstClause="Tới trang đầu" BackToPageClause="Quay lại trang trước" FromClause="Từ" GoClause="đến" GoToLastClause="Tới trang cuối" NextToPageClause="Tới trang kế tiếp" OfClause="trong tổng số" PageClause="Trang" ShowingResultClause="Đang hiển thị kết quả" ShowResultClause="Hiển thị kết quả" ToClause="tới" />
                      &nbsp;</div>
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
 </div>
</asp:Content>